﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkflowCore.Models;

namespace IM.Easy.Workflow.IServices
{
    /// <summary>
    /// 工作流定义管理服务
    /// </summary>
    public interface IWorkflowDefinitionService
    {
        /// <summary>
        /// 注册或更新工作流定义
        /// </summary>
        Task RegisterWorkflowDefinitionAsync(string jsonDefinition);

        /// <summary>
        /// 根据ID和版本获取工作流定义
        /// </summary>
        Task<WorkflowDefinition> GetWorkflowDefinitionAsync(string workflowId, int version);
    }
}
